Skip to main content

idleRate

Type

property

Summary

Specifies the number of milliseconds between idle, mouseStillDown, and mouseWithin messages.

Syntax

set the idleRate to <number>

Description

Adjust the idleRate property to change the interval between periodically-sent messages. Increasing the idleRate causes these messages to be sent less frequently, and decreases the amount of CPU time the application uses.

The idleRate is the time in milliseconds between one idle message and the next, one mouseStillDown message and the next, and one mouseWithin message and the next.

Important

Some Unix systems cannot reliably time an interval less than 200 milliseconds. Setting a shorter idleRate on those systems may cause idle messages to be sent at erratic times.

This property is very similar to the idleTicks property, and changes when the idleTicks changes. The only difference is that the two properties are given in different time units: the idleRate is in milliseconds and the idleTicks is in ticks.

Examples

set the idleRate to 500 -- one idle message per half second

message: idle, mouseStillDown, mouseWithin

property: effectRate, properties, blinkRate, idleTicks

function: ticks, milliseconds

glossary: property, application, message, Unix

keyword: integer

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?